

#ifndef _DRV_I2C_H_
#define _DRV_I2C_H_

#define I2C_TRANSFER_SIZE_MAX   (254)

#if 0
typedef unsigned long long Uint64;      
typedef unsigned int Uint32;            
typedef unsigned short Uint16;          
typedef unsigned char Uint8;           

typedef long long Int64;              
typedef int Int32;                   
typedef short Int16;                
typedef char Int8;                 
#endif

typedef struct {

  int fd;

} DRV_I2cHndl;

int DRV_i2cOpen(DRV_I2cHndl *hndl, Uint8 devAddr);
int DRV_i2cRead8  (DRV_I2cHndl *hndl, Uint8 *reg, Uint8 *value, Uint8 count);
int DRV_i2cWrite8 (DRV_I2cHndl *hndl, Uint8 *reg, Uint8 *value, Uint8 count);


int DRV_i2cClose(DRV_I2cHndl *hndl);

#endif
